; * doc/lispref/searching.texi (Char Classes): Add speedup advice.
authorEli Zaretskii <eliz@gnu.org>
Thu, 29 May 2025 16:02:13 +0000 (19:02 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 29 May 2025 16:02:13 +0000 (19:02 +0300)
doc/lispref/searching.texi

index 09ff6202afa5895302f6b3ab630ff9cd5701f7cd..8434431a74ac119ad8870fc95fe46003ff0537d8 100644 (file)
@@ -616,7 +616,10 @@ This matches horizontal whitespace, as defined by Annex C of the
 Unicode Technical Standard #18.  In particular, it matches spaces,
 tabs, and other characters whose Unicode @samp{general-category}
 property (@pxref{Character Properties}) indicates they are spacing
-separators.
+separators.  (If you only need to look for ASCII whitespace characters,
+we suggest using an explicit set of character alternatives, such as
+@w{@samp{[ \t]}}, instead, as it will be faster than
+@code{[[:blank:]]}.)
 @item [:cntrl:]
 This matches any character whose code is in the range 0--31.
 @item [:digit:]